package games;

public class KamisadoSquare implements Cloneable {
	private SquareColor color;
	private Tower tower = null;
	
	public KamisadoSquare(SquareColor color, Tower tower) {
		this.color = color;
		this.tower = tower;
	}
	
	public KamisadoSquare(SquareColor color) {
		this.color = color;
	}

    public SquareColor getColor() {
        return color;
    }

    public Tower getTower() {
        return tower;
    }

    public void setTower(Tower tower) {
        this.tower = tower;
    }

    public SquareColor getTowerColor() {
        return this.tower != null ? this.tower.getColor() : null;
    }

    public KamisadoSquare clone() {
    	try {
			return (KamisadoSquare) super.clone();
		} catch (CloneNotSupportedException e) {
			throw new AssertionError();
		}
    }
        
}
